package com.ruoyi.system.domain;

import java.util.Date;
import java.util.List;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.system.domain.vo.FileUploadVO;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 入境游客总量统计对象 inbound_tourist_total_statistics
 * 
 * @author zhur
 * @date 2025-03-31
 */
@Data
@TableName("inbound_tourist_total_statistics")
public class InboundTouristTotalStatistics
{
    private static final long serialVersionUID = 1L;

    /** ID自增 */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "business_id")
    private String businessId;

    /** 团队编号 */
    @Excel(name = "团队编号")
    @TableField(value = "team_number")
    private String teamNumber;

    /** 市场 */
    @Excel(name = "市场")
    @TableField(value = "market")
    private String market;

    /** 人数 */
    @Excel(name = "人数")
    @TableField(value = "people_count")
    private Long peopleCount;

    /** 天数 */
    @Excel(name = "天数")
    @TableField(value = "days")
    private Long days;

    /** 人天数 */
    @Excel(name = "人天数")
    @TableField(value = "person_days")
    private Long personDays;

    /** 起止日期 */
    @Excel(name = "起止日期")
    @TableField(value = "start_end_date")
    private String startEndDate;

    /** 填报日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "填报日期", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField(value = "report_date")
    private Date reportDate;

    /** 申报单位 */
    @Excel(name = "申报单位")
    @TableField(value = "reporting_unit")
    private String reportingUnit;


    /**附件 URL*/
    @TableField(value = "urls")
    private String  urls;


    /**创建时间*/
    @TableField (value = "create_time")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date  createTime;


    /**创建人*/
    @TableField (value = "create_user")
    private String  createUser;


    /**远程市场*/
    @TableField (value = "origin")
    private String  origin;


/**附件*/
    @TableField(exist = false)
    private List<FileUploadVO> files;

    @TableField(exist = false)
    private List<Examine>examines;

    /*
            事件类型 0 事前 1 事后
         */
    @TableField(value = "event_type")
    private Integer eventType;

    @TableField(value = "status")
    private Integer status;;

    @TableField(exist = false)
    private String remark;

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("teamNumber", getTeamNumber())
            .append("market", getMarket())
            .append("peopleCount", getPeopleCount())
            .append("days", getDays())
            .append("personDays", getPersonDays())
            .append("startEndDate", getStartEndDate())
            .append("reportDate", getReportDate())
            .append("reportingUnit", getReportingUnit())
            .toString();
    }
}
